package test.com.qcorm.core;
import java.util.*;
import com.qcorm.core.BaseModel;
import com.qcorm.core.DaoParameter;


/**
*<p>Description: </p>
* @author cqin
* @date 2017-03-23 15:55:05
*
*/
public class FoodInfo extends BaseModel {


    public FoodInfo(){
        this.dbType="MySql";
        this.keyName = "foodID";
        this.dbName = "qinxiaochu";
        this.tableName = "FoodInfo";
    }


    private long foodID;
    public long getFoodID() {
        return foodID;
    }
    public void setFoodID(long foodID) {
        this.foodID = foodID;
    }


    private String name;
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }


    private String remark;
    public String getRemark() {
        return remark;
    }
    public void setRemark(String remark) {
        this.remark = remark;
    }


    private String picurl;
    public String getPicurl() {
        return picurl;
    }
    public void setPicurl(String picurl) {
        this.picurl = picurl;
    }


    private Date datachange_createtime;
    public Date getDatachange_createtime() {
        return datachange_createtime;
    }
    public void setDatachange_createtime(Date datachange_createtime) {
        this.datachange_createtime = datachange_createtime;
    }


    private Date datachange_lasttime;
    public Date getDatachange_lasttime() {
        return datachange_lasttime;
    }
    public void setDatachange_lasttime(Date datachange_lasttime) {
        this.datachange_lasttime = datachange_lasttime;
    }


    private Boolean isshow;
    public Boolean getIsshow() {
        return isshow;
    }
    public void setIsshow(Boolean isshow) {
        this.isshow = isshow;
    }


    private short foodType;
    public short getFoodType() {
        return foodType;
    }
    public void setFoodType(short foodType) {
        this.foodType = foodType;
    }




    /***************************The following are additional code for ORM*******************/


    /**
    * 
    * @param isWhereCondition
    * @param value
    */
    public void setORM_FoodID(Boolean isWhereCondition, long value)
    {
        this.foodID = value;
        this.parameters.add(new DaoParameter(isWhereCondition,"foodID",value,java.sql.Types.BIGINT));
    }


    /**
    * 
    * @param isWhereCondition
    * @param value
    */
    public void setORM_Name(Boolean isWhereCondition, String value)
    {
        this.name = value;
        this.parameters.add(new DaoParameter(isWhereCondition,"name",value,java.sql.Types.VARCHAR));
    }


    /**
    *
    * @param isWhereCondition
    * @param value
    */
    public void setORM_Remark(Boolean isWhereCondition, String value)
    {
        this.remark = value;
        this.parameters.add(new DaoParameter(isWhereCondition,"remark",value,java.sql.Types.VARCHAR));
    }


    /**
    *
    * @param isWhereCondition
    * @param value
    */
    public void setORM_Picurl(Boolean isWhereCondition, String value)
    {
        this.picurl = value;
        this.parameters.add(new DaoParameter(isWhereCondition,"picurl",value,java.sql.Types.VARCHAR));
    }


    /**
    *
    * @param isWhereCondition
    * @param value
    */
    public void setORM_Datachange_createtime(Boolean isWhereCondition, Date value)
    {
        this.datachange_createtime = value;
        this.parameters.add(new DaoParameter(isWhereCondition,"datachange_createtime",value,java.sql.Types.TIMESTAMP));
    }


    /**
    *
    * @param isWhereCondition
    * @param value
    */
    public void setORM_Datachange_lasttime(Boolean isWhereCondition, Date value)
    {
        this.datachange_lasttime = value;
        this.parameters.add(new DaoParameter(isWhereCondition,"datachange_lasttime",value,java.sql.Types.TIMESTAMP));
    }


    /**
    *
    * @param isWhereCondition
    * @param value
    */
    public void setORM_Isshow(Boolean isWhereCondition, Boolean value)
    {
        this.isshow = value;
        this.parameters.add(new DaoParameter(isWhereCondition,"isshow",value,java.sql.Types.BIT));
    }


    /**
    *
    * @param isWhereCondition
    * @param value
    */
    public void setORM_FoodType(Boolean isWhereCondition, short value)
    {
        this.foodType = value;
        this.parameters.add(new DaoParameter(isWhereCondition,"foodType",value,java.sql.Types.SMALLINT));
    }


}